import Mock from "mockjs";
import homeApi from './mockServeData/home'
import userApi from './mockServeData/user'
import permissionApi from './mockServeData/permission'
//拦截接口
Mock.mock(/home\/getData/, 'get', homeApi.getStatisticalData)
Mock.mock(/user\/getUser/, 'get', userApi.getUserList)
//新增
Mock.mock(/user\/addUser/, 'post', userApi.createUser)
//编辑
Mock.mock(/user\/editUser/, 'post', userApi.updateUser)
//删除
Mock.mock(/user\/deleteUser/, 'post', userApi.deleteUser)
//登录
Mock.mock(/permission\/getMenu/, 'post', permissionApi.getMenu)

